package com.eggy648.moreeggs.sound;


import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

/**
 * Created by Cheese on 2017/2/27.
 * reg sounds
 */
public class SoundsLoader {
    public static final  SoundEvent ateIronEgg = createSoundEvent("players.ate_iron_egg");
    public static SoundEvent createSoundEvent(String nameIn)
    {
        final ResourceLocation res=new ResourceLocation("moreeggs",nameIn);
        return new SoundEvent(res).setRegistryName(res);
    }
    @Mod.EventBusSubscriber
    public static class RegistrationHandler {
        @SubscribeEvent
        public static void registerSoundEvents(RegistryEvent.Register<SoundEvent> event) {
            event.getRegistry().registerAll(
                    ateIronEgg
            );
        }
    }
}
